/**
 * 
 */
package com.zhiteng.service;

import java.util.Date;
import java.util.List;

import com.zhiteng.entity.Bill;
import com.zhiteng.entity.LeaveBill;
import com.zhiteng.entity.Procdef;

/**  
* <p>Title: LeaveService.java</p>  
* <p>Description: </p>  
* @author dragon  
* @date 2018年12月1日  
* @version 1.0  
*/
public interface LeaveService {
	
	void saveLeaveBill(LeaveBill bill,List<Procdef> procdefList);
	
	LeaveBill queryLeaveBillById(long billId);
	
	void updateLeaveBillByRecord(LeaveBill bill);
	
	List<LeaveBill> queryLeaveBillsByTeacherIdAndSchoolId(String teacherId, String schoolId);

	List<LeaveBill> queryMyUncomplatedLeaveBills(String teacherId, String schoolId);
	
	void saveComplatedMyLeaveBill(long billId, String teacherId, String schoolId, int status, String remark);
	
	List<Bill> queryMyComplatedLeaveBill(String teacherId, String schoolId);
	
	void updateCancleLeaveBill(LeaveBill leaveBill);

	List<LeaveBill> queryLeaveBySchoolIdAndStatus(String schoolId, int i);

	List<LeaveBill> queryLeaveBySchoolIdAndStatusAndQJ(String schoolId, int i, Date startTime3, Date endTime3);

	List<LeaveBill> queryLeaveBySchoolIdAndStatusAndQJAndTeacherId(String schoolId, String teacherId, int i,
			Date startTime3, Date endTime3);
	
}
